import Layout from "@/layout/index.vue";

const root = ``;

export default [
  {
    path: "/",
    component: Layout,
    redirect: `${root}/home`,
    children: [
      {
        path: `${root}/home`,
        // name: "-home",
        component: () => import("@/views/PC/home/home.vue"),
        meta: {
          title: "首页",
          login: true,
        },
      },
    ],
  },
  {
    path: `${root}/login`,
    name: "-login",
    component: () => import("@/views/PC/login/login.vue"),
    meta: {
      title: "登录",
    },
  },

  // 404 路由，放在最后
  {
    path: "/:pathMatch(.*)",
    name: "404",
    component: () => import("@/views/404/index.vue"),
    meta: {
      title: "OOPS!",
    },
  },
];
